<!DOCTYPE html>
<html lang="Zh-CN">
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <title><?php echo $title; ?> - SMU Poster Console</title>
        <link rel="icon" type="image/x-icon" href="<?php echo base_url() . 'favicon.ico' ?>"/>
        <link rel="stylesheet" href="<?php echo base_url() . 'css/bootstrap.css' ?>">
        <link rel="stylesheet" href="<?php echo base_url() . 'css/admin_style.css' ?>">
        <link rel="stylesheet" href="<?php echo base_url() . 'fancybox/jquery.fancybox.css?v=2.1.5' ?>" type="text/css" media="screen" />
        <script src="<?php echo base_url() . 'js/jquery-1.9.0.js' ?>"></script>
        <script src="<?php echo base_url() . 'js/bootstrap.js' ?>"></script>
        <script type="text/javascript" src="<?php echo base_url() . 'fancybox/jquery.fancybox.pack.js?v=2.1.'?>"></script>
    </head>

    <body>
    <div id="wrap">

        <nav class="navbar navbar-default navbar-static-top" role="navigation">
            <div class="container">
                <div class="navbar-header">
                        <a class="navbar-brand" href="#">Poster</a>
                </div>
                <div class="collapse navbar-collapse" id="'poster-nav">
                    <ul class="nav navbar-nav">
                        <li <?php echo (uri_string() == 'poster_admin')? 'class="active"': ''; ?>><a href="<?php echo base_url().'poster_admin'; ?>">首页</a></li>
                        <li <?php echo (uri_string() == 'poster_admin/works')? 'class="active"': ''; ?>><a href="<?php echo base_url().'poster_admin/works'; ?>">作品管理</a></li>
                        <li <?php echo (uri_string() == 'poster_admin/category')? 'class="active"': ''; ?>><a href="<?php echo base_url().'poster_admin/category'; ?>">分类管理</a></li>
                        <li <?php echo (uri_string() == 'poster_admin/college')? 'class="active"': ''; ?>><a href="<?php echo base_url().'poster_admin/college'; ?>">学院管理</a></li>
                        <?php echo ($this->session->userdata['level'] == 99) ? ('<li '.((uri_string() == 'poster_admin/user')? 'class="active"': '').'><a href="' .base_url().'poster_admin/user">用户管理</a></li>') : '' ?>
                        <li <?php echo (uri_string() == 'poster_admin/center')? 'class="active"': ''; ?>><a href="<?php echo base_url().'poster_admin/center'; ?>">个人中心</a></li>
                    </ul>
                    <div class="right-side">
                        <a href="<?php echo base_url(); ?>"><button type="button" class="btn btn-primary navbar-btn">返回前台</button></a>
                        <a href="<?php echo base_url().'poster_admin/logout'; ?>"><button type="button" class="btn btn-default navbar-btn">登出</button></a>
                    </div>
                </div>
            </div>
        </nav>
        <div class="container">
            <div class="col-sm-8 col-sm-offset-2">